#ifndef _PROTOTYPE_THREAD_HPP_
#define _PROTOTYPE_THREAD_HPP_

#include "Prototype.hpp"
#include "Thread.hpp"
#include "TimerResource.hpp"
#include <allegro.h>
#include <boost/scoped_ptr.hpp>

class PrototypeThread : public Prototype
{
public:
	PrototypeThread(const std::string asName) : Prototype(asName) {}
	~PrototypeThread()  {}
public:
    void Run();
    void Render(BITMAP* aBuffer);
	static int getIncreaseValue(int jobId);

private:
    void Init();
    void DeInit();

private:
    timer::TimerResourceRef mTimerRes;

private:
    boost::scoped_ptr<Thread> t1;
	boost::scoped_ptr<Thread> t2;
	boost::scoped_ptr<ThreadJob> job1;
	boost::scoped_ptr<ThreadJob> job2;
    static boost::scoped_ptr<Mutex> m;
	static int tabValue[100];
	static int testValue;
	static int i;

};
#endif // _PROTOTYPE_THREAD_HPP_
